export default (fn, time = 60) => {
    return (...args) => {
        let timer;
        if(timer) {
            return;
        }
        clearTimeout(timer);
        timer = setTimeout(() => {
            fn && fn(...args);
        }, time)
    }
}